package yl.hs.bmipfull.utils;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
import yl.hs.bmipfull.service.production.IProductionRecordService;

/**
 * @author 谢东
 * @apiNote
 * @since 2022/7/29 16:08 创建
 */
@Component
public class ApplicationStart  implements CommandLineRunner {

    private IProductionRecordService recordService;
    @Autowired
    private void setRecordService(IProductionRecordService recordService){
        this.recordService=recordService;
    }

    @Override
    public void run(String... args) throws Exception {
        //注释erp系统启动后删除消耗记录问题
        //recordService.deleteRecordMax();
    }
}
